<template>
  <div>
    <form action="/">
      <van-search
        v-model="value"
        show-action
        placeholder="茅台"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onCancel() {
      this.$router.push("/home").catch((err) => {});
    },
  },
};
</script>

<style>
</style>